package org.dromara.comm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.comm.domain.AsLabel;
import org.dromara.comm.domain.AsLeaveIdle;
import org.dromara.comm.domain.AsLeaveIdleImage;
import org.dromara.comm.domain.AsUserLeaveIdle;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface AsLeaveIdleService extends IService<AsLeaveIdle> {

    Page<AsLeaveIdle> selectAsLeaveIdle(AsLeaveIdle asLeaveIdle, Pageable pageable);

    void insertAsLeaveIdleImages(AsLeaveIdle asLeaveIdle, AsLeaveIdleImage asLeaveIdleImage,List<AsLabel> labelIds);

    void updateAsLeaveIdleImages(AsLeaveIdle asLeaveIdle, AsLeaveIdleImage asLeaveIdleImage,List<AsLabel> labelIds);


    List<AsLeaveIdle> getAllDigitalToys();


    List<AsLeaveIdle> getDigitalToysByCategory(String category);


    List<AsLeaveIdle> details(AsLeaveIdle asLeaveIdle);

    void updateState(AsLeaveIdle asLeaveIdle);

    void deleteIsDelete(Integer id);

    Map<String,Object> selectAsMyRelease(AsLeaveIdle asLeaveIdle, Pageable pageable);

    void updateStates(AsLeaveIdle asLeaveIdle);

    void updateIsDelete(AsLeaveIdle asLeaveIdle);

    void insertCollection(AsLeaveIdle asLeaveIdle);

    List<Object> selectAsUserLeaveIdle(AsUserLeaveIdle asUserLeaveIdle);
}
